<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>消息中心 - 图文视频社交App</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="components.css">
    <style>
        .message-badge {
            background-color: #ff2d55;
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            font-size: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: absolute;
            top: -5px;
            right: -5px;
        }
        
        .message-tab {
            padding: 12px 0;
            text-align: center;
            font-weight: 600;
            color: #666;
            border-bottom: 3px solid transparent;
            transition: all 0.3s;
        }
        
        .message-tab.active {
            color: #ff2d55;
            border-bottom-color: #ff2d55;
        }
    </style>
</head>
<body>
    <!-- 状态栏 -->
    <div class="status-bar">
        <div class="status-bar-time">14:30</div>
        <div class="status-bar-icons">
            <i class="fas fa-signal"></i>
            <i class="fas fa-wifi"></i>
            <i class="fas fa-battery-full"></i>
        </div>
    </div>

    <!-- 顶部导航 -->
    <div class="flex justify-between items-center px-4 py-2 bg-white">
        <div class="text-xl font-bold text-pink-600">消息</div>
        <div class="flex">
            <i class="fas fa-search text-gray-600 mr-4 text-xl"></i>
            <i class="fas fa-ellipsis-h text-gray-600 text-xl"></i>
        </div>
    </div>

    <!-- 消息类型选择 -->
    <div class="grid grid-cols-3 bg-white">
        <div class="message-tab active">聊天</div>
        <div class="message-tab">通知</div>
        <div class="message-tab">@我</div>
    </div>

    <!-- 消息列表 -->
    <div class="content-container">
        <!-- 聊天列表 -->
        <div class="bg-white">
            <!-- 聊天项1 -->
            <div class="flex items-center p-4 border-b border-gray-100">
                <div class="relative">
                    <img src="https://images.unsplash.com/photo-1494790108377-be9c29b29330" alt="用户头像" class="avatar">
                    <div class="message-badge">3</div>
                </div>
                <div class="ml-3 flex-1">
                    <div class="flex justify-between">
                        <div class="font-medium">美食达人</div>
                        <div class="text-xs text-gray-500">10:30</div>
                    </div>
                    <div class="text-sm text-gray-600 mt-1 truncate">你好！我看了你分享的美食视频，太棒了！</div>
                </div>
            </div>
            
            <!-- 聊天项2 -->
            <div class="flex items-center p-4 border-b border-gray-100">
                <div class="relative">
                    <img src="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d" alt="用户头像" class="avatar">
                </div>
                <div class="ml-3 flex-1">
                    <div class="flex justify-between">
                        <div class="font-medium">旅行摄影师</div>
                        <div class="text-xs text-gray-500">昨天</div>
                    </div>
                    <div class="text-sm text-gray-600 mt-1 truncate">请问你用的是什么相机拍摄的？效果很好</div>
                </div>
            </div>
            
            <!-- 聊天项3 -->
            <div class="flex items-center p-4 border-b border-gray-100">
                <div class="relative">
                    <img src="https://images.unsplash.com/photo-1539571696357-5a69c17a67c6" alt="用户头像" class="avatar">
                    <div class="message-badge">1</div>
                </div>
                <div class="ml-3 flex-1">
                    <div class="flex justify-between">
                        <div class="font-medium">数码科技</div>
                        <div class="text-xs text-gray-500">周一</div>
                    </div>
                    <div class="text-sm text-gray-600 mt-1 truncate">新款手机已经发布了，要不要一起去体验一下？</div>
                </div>
            </div>
            
            <!-- 聊天项4 -->
            <div class="flex items-center p-4 border-b border-gray-100">
                <div class="relative">
                    <img src="https://images.unsplash.com/photo-1438761681033-6461ffad8d80" alt="用户头像" class="avatar">
                </div>
                <div class="ml-3 flex-1">
                    <div class="flex justify-between">
                        <div class="font-medium">时尚博主</div>
                        <div class="text-xs text-gray-500">上周</div>
                    </div>
                    <div class="text-sm text-gray-600 mt-1 truncate">谢谢你的关注，有什么时尚方面的问题可以随时问我</div>
                </div>
            </div>
            
            <!-- 聊天项5 -->
            <div class="flex items-center p-4">
                <div class="relative">
                    <img src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e" alt="用户头像" class="avatar">
                </div>
                <div class="ml-3 flex-1">
                    <div class="flex justify-between">
                        <div class="font-medium">健身教练</div>
                        <div class="text-xs text-gray-500">2周前</div>
                    </div>
                    <div class="text-sm text-gray-600 mt-1 truncate">我给你制定了一份健身计划，记得查收</div>
                </div>
            </div>
        </div>

        <div class="divider"></div>

        <!-- 系统消息 -->
        <div class="bg-white p-4">
            <div class="section-title">系统通知</div>
            <div class="flex items-center mt-3">
                <div class="bg-pink-100 text-pink-600 rounded-full w-10 h-10 flex items-center justify-center mr-3">
                    <i class="fas fa-bell"></i>
                </div>
                <div class="flex-1">
                    <div class="font-medium">系统通知</div>
                    <div class="text-sm text-gray-600 mt-1">你的账号安全检查已完成，一切正常</div>
                    <div class="text-xs text-gray-500 mt-1">3天前</div>
                </div>
            </div>
        </div>
    </div>

    <!-- 底部导航栏 -->
    <div class="tab-bar">
        <div class="tab-item">
            <i class="fas fa-home tab-icon"></i>
            <span>首页</span>
        </div>
        <div class="tab-item">
            <i class="fas fa-search tab-icon"></i>
            <span>搜索</span>
        </div>
        <div class="tab-item">
            <i class="fas fa-plus-circle tab-icon" style="font-size: 32px; margin-top: -5px;"></i>
            <span>创作</span>
        </div>
        <div class="tab-item active">
            <i class="fas fa-bell tab-icon"></i>
            <span>消息</span>
        </div>
        <div class="tab-item">
            <i class="far fa-user tab-icon"></i>
            <span>我的</span>
        </div>
    </div>

    <script src="app.js"></script>
    <script>
        // 处理消息类型选项卡切换
        const messageTabs = document.querySelectorAll('.message-tab');
        messageTabs.forEach(tab => {
            tab.addEventListener('click', function() {
                messageTabs.forEach(t => t.classList.remove('active'));
                this.classList.add('active');
            });
        });
    </script>
</body>
</html> 